function sendRequest() {
  const data = {
    name: '张智琦',
    age: 18
  }

  $.get('http://127.0.0.1/api/get', data)
    .done(res => {
      console.log(res)
    })
    .catch(err => {
      console.log(err)
    })
}
